package com.wjw.spring5;

/**
 * @author wjw
 * @date 2021年10月26日 18:38
 * set注入
 */
public class Book {
    private String bookName;
    private Double price;

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public void outBook() {
        System.out.println("书名：" + bookName + "\n" + "价格：" + price);
    }
}
